<html><head>
  <title>NEGATED :last-of-type pseudo-class</title>
  <style type="text/css">.red { background-color : red }
address { margin-bottom : 1em ; margin-left : 1em }
address:not(:last-of-type) { background-color : lime }
</style>
  <link rel="author" title="Daniel Glazman" href="http://glazman.org/">
  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"> <!-- bogus link to make sure it gets found -->
  <meta name="flags" content="">
 </head>
 <body>
<div>
<!--[ELEMENT('address:not(:last-of-type)')]--><address class="red"><!--[TEXT('address:not(:last-of-type)')]-->A first address that should have a green background<!--[/TEXT('address:not(:last-of-type)')]--></address><!--[/ELEMENT('address:not(:last-of-type)')]-->
<!--[ELEMENT('address:not(:last-of-type)')]--><address class="red"><!--[TEXT('address:not(:last-of-type)')]-->A second address that should have a green background<!--[/TEXT('address:not(:last-of-type)')]--></address><!--[/ELEMENT('address:not(:last-of-type)')]-->
<address>A third address with normal background</address>
This div should have three addresses above it.</div>

</body></html>